<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <script src="static/js/jquery-3.0.0.min.js"></script>
    <link href="/media/examples/link-element-example.css" rel="stylesheet" />
    <script src="static/bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="static/bootstrap-3.4.1-dist/css/bootstrap.min.css"></link>
    <link rel="stylesheet" href="static/bootstrap-3.4.1-dist/css/bootstrap-theme.min.css"></link>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <!--
	 <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
		-->
		<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
		<!--
		<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">
		-->
		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
		<!--
		<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
		-->
    <style>
        .loginForm {
            /*边框高度*/
            height: 350px;
            /*边框宽度*/
            width: 500px;
            /*边框颜色*/
            border: #4d4d4d solid 1px;
            /*边框圆角*/
            border-radius: 4px;
            /*阴影 水平方向，竖直方向，模糊距离*/
            box-shadow: 5px 5px 5px #4d4d4d;
            /*上边界距离*/
            margin-top: 200px;
            /*左边界距离：自动*/
            margin-left: auto;
            /*右边界距离：自动*/
            margin-right: auto;
            /*用户名、密码间距*/
            padding: 20px 40px;
        }

        /*将用户登录置于中间*/
        .loginForm h2 {
            text-align: center;
        }

        /*修改button属性*/
        .button {
            text-align: center;
            vertical-align: middle;
        }
    </style>
</head>
<body>
<div class="loginForm">
    <h2>用户登录</h2>
    <form method="post">
        {{ form.hidden_tag() }}
        <div class="form-group">
            <!-- <label for="exampleInputEmail1">用户名</label>
            <input type="email" class="form-control" id="exampleInputEmail1" placeholder="请输入用户名"> -->
            {{ form.name.label}} {{ form.name(class='form-control', id='exampleInputEmail1', placeholder='请输入用户名') }}
        </div>
        <div class="form-group">
            <!-- <label for="exampleInputPassword1">密码</label>
            <input type="password" class="form-control" id="exampleInputPassword1" placeholder="请输入密码"> -->
            {{ form.passwd.label}} {{ form.passwd(class='form-control', id='exampleInputPassword1', placeholder='请输入密码', type="password")}}
        </div>
        {% for message in get_flashed_messages() %}
            {{ message }}
        {% endfor %}
        
        <div class="button">
            {{ form.submit(class='btn btn-primary')}}
        </div>
    </form>
</div>

</body>
</html>
